package com.jming.jike.dto.front;

import com.jming.jike.common.ValidatorGroup.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author jinming.zhang
 * @version 0.0.1
 * @date 2022/05/05
 */
@Data
public class ShoppingCartDTO {

    @ApiModelProperty("菜品唯一id")
    @NotNull(message = "菜品唯一id不能为空", groups = {Insert.class, Update.class})
    private Long soleId;

    @ApiModelProperty("备注 比如:口味信息 用户其他要求(250字以类)")
    @Length(max = 250, message = "备注不能超过{max}个字符", groups = {Insert.class, Update.class})
    private String desc;

}
